﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: CouponLogEntity.cs
// 修改时间：2020-9-8 10:40:01
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：CouponLog 的实体类.
	/// </summary>
	[Table("CouponLog")]
	public partial class CouponLogEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// ID(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private int? _couponID = 0;
		/// <summary>
		/// 优惠券ID
		/// </summary>
		[Column("CouponID",TypeName="int")]
		public int? CouponID
		{
			get {return _couponID;}
			set {_couponID = value;}
		}
		
		private System.String _couponNum = string.Empty;
		/// <summary>
		/// 优惠券号码
		/// </summary>
		[Column("CouponNum",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CouponNum
		{
			get {return _couponNum;}
			set {_couponNum = value;}
		}
		
		private int? _userID = 0;
		/// <summary>
		/// 用户ID
		/// </summary>
		[Column("UserID",TypeName="int")]
		public int? UserID
		{
			get {return _userID;}
			set {_userID = value;}
		}
		
		private int? _orderID = 0;
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column("OrderID",TypeName="int")]
		public int? OrderID
		{
			get {return _orderID;}
			set {_orderID = value;}
		}
		
		private int? _usetimes = 0;
		/// <summary>
		/// 使用次数
		/// </summary>
		[Column("Usetimes",TypeName="int")]
		public int? Usetimes
		{
			get {return _usetimes;}
			set {_usetimes = value;}
		}
		
		#endregion
	}
}
